<?xml version="1.0" encoding="UTF-8"?>

<ui:component xmlns="http://www.w3.org/1999/xhtml"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:c="http://java.sun.com/jstl/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:gouse="http://www.ganymed.be/gouse/functions"
              xmlns:a4j="http://richfaces.org/a4j">

    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 2em">
        <tr>
            <td colspan="3">
                <div id="underlinemenu">
                    <ul class="navigation">
                        <h:form id="navigationForm">
                            <c:forEach items="#{utilBackingBean.pages}" var="page">
                                <li class="navigation_item">
                                    <h:outputLink
                                            value="#{request.contextPath}/swf/site/gouse-site-flow?pageId=#{page.id}">
                                        #{page.title}
                                    </h:outputLink>
                                </li>
                            </c:forEach>
                            <c:forEach items="#{utilBackingBean.navigationFunctions}" var="function">
                                <li class="navigation_item">
                                    <h:outputLink
                                            value="#{request.contextPath}#{function.url}">#{function.name}
                                    </h:outputLink>
                                </li>
                            </c:forEach>
                        </h:form>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
</ui:component>
